syms x
myFun=x^2-6

newtonsMethod(myFun, 1, 10^-4,2)